
const sequelize = require('./shared/sequelize')

// 初始化
// sequelize.import('/model/discuss')
require('./model/discuss')(sequelize,sequelize.DataTypes)
require('./model/collection')(sequelize,sequelize.DataTypes)
require('./model/client')(sequelize,sequelize.DataTypes)

sequelize.sync({force:true}).catch((err)=>{
    console.error(err)
}).finally(()=>{
    console.log('over')
    sequelize.close()
})